<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>注册界面</title>
    <link rel="stylesheet" type="text/css" href="/res/view/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="/res/view/css/body.css"/>
</head>
<body>
<div class="container">
    <section id="content">
        <form action="">
            <h1>注册界面</h1>
            <div>
                <input type="text" placeholder="账号" required
                       oninvalid="setCustomValidity('请输入您的账号');" id="username"/>
            </div>
            <div>
                <input type="password" placeholder="密码" oninvalid="setCustomValidity('请输入您的密码');" id="password"/>
            </div>
            <div class="">
                <span class="help-block u-errormessage" id="js-serv+
                er-helpinfo">&nbsp;</span></div>
            <div align="center">
                <!-- <input type="submit" value="Log in" /> -->
                <input type="submit" value="登录" class="btn btn-primary" id="js-btn-login"
                       onclick="register()"/>

                <input type="button" value="注册" class="btn btn-primary" id="js-btn-register"
                       onclick="window.location.reload('/html/index.html')"/>
            </div>
        </form><!-- form -->
        <div class="button">
            <a href="#">忘记密码</a>
        </div> <!-- button -->
    </section><!-- content -->
</div>

<br><br><br><br>
<div style="text-align:center;">
    <p>来源:More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> -
        Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a></p>
</div>
</body>
<script type="text/javascript">
    console.log(document.cookie);
    console.log(getCookie("user_id"));
    function getCookie(name){//取cookies函数
        var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
        if(arr != null) return unescape(arr[2]); return null;
    }
    function register() {
        alert('hhhh')
    }
</script>
</html>